public class StaticDemo10 {
    public static void main(String[] args) {
        Bird bird = new Bird();
//        bird.fly("空中");
        bird = null;
//        bird.fly("水中");//NullPointerException

        bird.getTime();// 空对象调用静态方法不报错
    }
}
